<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>登录 - 管理界面</title>
    <style>
        /* 全局样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            background-color: #f4f4f4;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .login-container {
            max-width: 400px;
            width: 90%;
            padding: 2rem;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .login-container h2 {
            text-align: center;
            margin-bottom: 2rem;
            color: #333;
        }

        .form-group {
            margin-bottom: 1rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: #333;
        }

        .form-group input {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 1rem;
        }

        .form-group input:focus {
            outline: none;
            border-color: #007bff;
            box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
        }

        .form-group button {
            width: 100%;
            padding: 0.75rem;
            background-color: #007bff;
            color: #fff;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 1rem;
            margin-top: 1rem;
        }

        .form-group button:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
    <div class="login-container">
        <h1>登录</h1>
        <form action="/login" method="post">
            <div class="form-group">
                <label for="dbAddr">数据库地址：</label>
                <input type="text" id="dbAddr" name="dbAddr" required>
            </div>
            <div class="form-group">
                <label for="dbPort">数据库端口：</label>
                <input type="text" id="dbPort" name="dbPort" required>
            </div>
            <div class="form-group">
                <label for="dbUser">数据库用户名：</label>
                <input type="text" id="dbUser" name="dbUser" required>
            </div>
            <div class="form-group">
                <label for="dbPwd">数据库密码：</label>
                <input type="password" id="dbPwd" name="dbPwd" required>
            </div>
            <div class="form-group">
                <label for="dbName">数据库名：</label>
                <input type="text" id="dbName" name="dbName" required>
            </div>
            <div class="form-group">
                <button type="submit">登录</button>
            </div>
        </form>
    </div>
</body>
</html>
